package org.springframework.samples.travel.infrastructure.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

public class SecurityUser extends User {

    private org.springframework.samples.travel.domain.model.user.User user;

    public org.springframework.samples.travel.domain.model.user.User getUser() {
	return user;
    }

    public void setUser(org.springframework.samples.travel.domain.model.user.User user) {
	this.user = user;
    }

    public SecurityUser(String username, String password, boolean enabled, boolean accountNonExpired,
	    boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities)
	    throws IllegalArgumentException {
	super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }

}
